ast.Str was deprecated in python 3.12 and removed in 3.14. It inherited
from ast.Constant, `Str.s` was equivalent to `Constant.value`, so we can
use the latter on both old and newer python versions.
Differential Revision: https://phabricator.services.mozilla.com/
D261511
Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-
1983713-Use-non-deprecated-ast-value.-r-firefox-.patch
kwarg_dict = {}
for name, arg in zip(["command", "subcommand"], decorator.args):
- kwarg_dict[name] = arg.s
+ kwarg_dict[name] = arg.value
for keyword in decorator.keywords:
if keyword.arg not in relevant_kwargs: